<ui:component xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">

	<h:form>
		<rich:dataTable value="#{dojmoviByKorisnik}" var="dojamPosjetitelja" columns="1"
			rows="15" width="100%">
			<h:column>
				<h:outputLink
					value="#{application.contextPath}/guides/objekti/objekt.seam">
					<f:param name="idObjekta" value="#{dojamPosjetitelja.objekt.idObjekta}"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(dojamPosjetitelja.objekt)}"/>
					<h:outputText
						value="#{dojamPosjetitelja.objekt.tipObjekta.naziv} #{dojamPosjetitelja.objekt.naziv}" />
				</h:outputLink>,
				<h:outputLink
					value="#{application.contextPath}/guides/mjesta/mjesto.seam">
					<f:param name="idMjesta" value="#{dojamPosjetitelja.objekt.mjesto.idMjesta}" />
					<f:param name="l" value="#{currentLang}" />
					<f:param name="title" value="#{titleAction.getUrlTitle(mjesto)}"/>
					<h:outputText value="#{dojamPosjetitelja.objekt.mjesto.naziv}" />
				</h:outputLink>				
				<br/>
				<h:outputText value="#{dojamPosjetitelja.naslov}" styleClass="title-14"/>
				<br/>
				<h:outputText value="#{dojamPosjetitelja.komentar}" />
				<br />
				<s:link value="#{messages['label.edit']}"
					action="#{dojamAction.editSetup('backToDojmovi')}">
					<f:param name="idObjekta" value="#{dojamPosjetitelja.objekt.idObjekta}" />
				</s:link>
				<div><h:outputText
					value="#{dojamPosjetitelja.datum}" /></div>
				<s:div styleClass="rich-separator"></s:div>
				<br />
			</h:column>
			<f:facet name="footer">
				<rich:datascroller></rich:datascroller>
			</f:facet>
		</rich:dataTable>
	</h:form>
</ui:component>